﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using BCDto.TMS.SpecificServiceType;
using BCEntity.TMS.SpecificServiceType;
using BCEntity.TMS.SpecificServiceTypeOverWrite;

namespace BCService.MapperProfiles.TMS.SpecificServiceType
{
    public class SpecificServiceType : Profile
    {
        public SpecificServiceType()
        {
            CreateMap<SpecificServiceTypeRequestDto, SpecificServiceTypeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeDto, SpecificServiceTypeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeRequestDto, SpecificServiceTypeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeEntity, SpecificServiceTypeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeEntity, SpecificServiceTypeRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeDto, SpecificServiceTypeRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<SpecificServiceTypeOverWriteRequestDto, SpecificServiceTypeOverWriteEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteDto, SpecificServiceTypeOverWriteEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteRequestDto, SpecificServiceTypeOverWriteDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteEntity, SpecificServiceTypeOverWriteDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteEntity, SpecificServiceTypeOverWriteRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteDto, SpecificServiceTypeOverWriteRequestDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<SpecificServiceTypeEntity, SpecificServiceTypeViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeOverWriteEntity, SpecificServiceTypeViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SpecificServiceTypeViewEntity, SpecificServiceTypeViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
